package faceb.server.dao;

import java.util.List;
import java.util.Map;

import faceb.server.model.News;

public interface NewsDao {
 	public int insertNews(News news);
 	
 	public Map<String,Object> getNewsByNewsId(String newsid);
 	
 	public List<News> getNewsByUserId(String userid);
 	
 	public List<News> getNewsBeforeTime(long time ,int count);
 	
 	public List<News> getNewsAfterTime(long time ,int count);
 	
 	public int deleteNewsById(String newsid);
 	
 	public int newsZan(String newsId);    // 给news增加赞
 	 
 	public void newsViewcountAdd(String newsId);   //给news增加浏览次数
}
